class vector<bool>::reference {
friend class vector;
reference(); // no public constructor
public:
~reference();
operator bool () const; // convert to bool
reference& operator= (const bool x); // assign from bool
reference& operator= (const reference& x); // assign from bit
void flip(); // flip bit value.
};
|